package com.bbzn.user.client.service.impl;

import com.bbzn.user.client.dao.opthis.OptHisMapper;
import com.bbzn.user.client.dataobject.OptHis;
import com.bbzn.user.client.service.OptHisService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OptHisServiceImpl implements OptHisService {

    @Resource
    private OptHisMapper optHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return optHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OptHis record) {
        return optHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(OptHis record) {
        return optHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(OptHis record) {
        return optHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(OptHis record) {
        return optHisMapper.insertSelective(record);
    }

    @Override
    public OptHis selectByPrimaryKey(Long id) {
        return optHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OptHis record) {
        return optHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OptHis record) {
        return optHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<OptHis> findByAll(OptHis optHis) {
        return optHisMapper.findByAll(optHis);
    }

    @Override
    public int deleteByImei(String imei) {
        return optHisMapper.deleteByImei(imei);
    }

    @Override
    public int updateBatch(List<OptHis> list) {
        return optHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<OptHis> list) {
        return optHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<OptHis> list) {
        return optHisMapper.batchInsert(list);
    }

}


